﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using kim.Common;
using System.Data;
using System.Data.SqlClient;

namespace kim.Web
{
    public partial class newsDetails : kim.UI.BasePage
    {
        protected string[] htmltext = new string[10];
        protected string titleText, title1, EnTitle, back, next;
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = KIMRequest.GetInt("id", 0);
            if (id == 0)
            {
                Response.Redirect("index.aspx");
            }
            Model.eg_news nmo = new BLL.eg_news().UpdateRead(id);
            if (nmo != null)
            {
                htmltext[0] = nmo.Name;
                htmltext[1] = nmo.InTime.ToString();
                htmltext[2] = nmo.Content;
                htmltext[3] = nmo.Rcount.ToString();
                htmltext[4] = nmo.MaxPic;
            }
            else
                Response.Redirect(base.webPath + "kim/eroor.aspx?msg=" + Server.UrlEncode("访问数据不存在"));
            {
            }
            //GetPage();
            //GetTitle();
        }
     


    }
}